import Vue from 'vue'
const user = {
  limit:{
    1:"用户",
    3:"运维人员",
    7:"管理员",
  },
  limitType:{
    user:1,
    operator:3,
    admin:7
  },
}
user.new = {
  user:'',
  pass:'123456',
  limit:user.limitType.user,
  valid:1
};

function clone(obj,deep=false){
  return Object.assign({}, obj);
}

const app={
  user:user,
  clone:clone
}

Vue.prototype.$app = app;
Vue.prototype.$result = {
  success:0
};